]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Don't set keys as checked
authorRui Matos <tiagomatos@gmail.com>
Fri, 16 Nov 2012 01:40:23 +0000 (02:40 +0100)
committerRui Matos <tiagomatos@gmail.com>
Fri, 4 Jan 2013 13:13:08 +0000 (13:13 +0000)
There's no reason to do it and it actually breaks when showing subkeys
since then we won't get a 'key-released' signal for the main key.

https://bugzilla.gnome.org/show_bug.cgi?id=674955

js/ui/keyboard.js

index 397df8cce9b24651b5531e9b172f7d60b59e901d..2123d5c0265515752e0d58ebc59db0dae8c4bd63 100644 (file)
@@ -56,11 +56,6 @@ const Key = new Lang.Class({
         if (this._key.name == 'Control_L' || this._key.name == 'Alt_L')
             this._key.latch = true;
 
-        this._key.connect('key-pressed', Lang.bind(this, function ()
-                                                   { this.actor.checked = true }));
-        this._key.connect('key-released', Lang.bind(this, function ()
-                                                    { this.actor.checked = false; }));
-
         if (this._extended_keys.length > 0) {
             this._key.connect('notify::show-subkeys', Lang.bind(this, this._onShowSubkeysChanged));
             this._boxPointer = new BoxPointer.BoxPointer(St.Side.BOTTOM,